package com.tfkj.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Column;
import org.springframework.data.relational.core.mapping.Table;

@Data
@Table("student")
public class Student{
    @Id
    @Column("id")
    private Integer id;
    @Column("grade")
    private String grade;
    @Column("className")
    private String className;
    @Column("name")
    private String name;
    @Column("studentNum")
    private String  studentNum;
    @Column("password")
    @JsonIgnore
    private String password;
    @Column("phone")
    private String phone;
    @Column("email")
    private String email;
    @Column("role")
    private String role;
    @Column("subject")
    private String subject;

}
